<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">项目基本情况</div>
	<table class="t_css" id="basic_tab" width="100%" border="0" cellpadding="0"
	    cellspacing="1">
	<col style="width: 20%" />
	<col style="width: 30%" />
	<col style="width: 20%" />
	<col style="width: 30%" />
	    <tr class="li_1">
	        <td align="right">项目名称：</td>
	        <td colspan="3">
	        	<x:out select="$xmlData/data/proposal/zh_title"/>
	        </td>
	    </tr>
	    
		 <tr>
			<td align="right">归口管理单位：</td>
	        <td >
	        	<x:out select="$xmlData/data/proposal/recomend_org_name" />
	        </td>
		    <td  align="right" ><span class="color_red">*</span>申报日期：</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</td>
		</tr>
		
		
	<tr>
		<td align="right">项目联系人姓名：</td>
		<td>
			<x:out select="$xmlData/data/proposal/contact_psn_cname" />
		</td>
		<td align="right">联系人手机：</td>
		<td>
			<x:out select="$xmlData/data/proposal/contact_psn_mobile" />
		</td>
	</tr>

		<tr>
			<td align="right">项目负责人姓名：</td>
			<td>
				<x:out select="$xmlData/data/proposal/fzr_name"/>
			</td>
			<td align="right">负责人电子邮箱：</td>
			<td>
				<x:out select="$xmlData/data/proposal/fzr_email"/>
			</td>
		</tr>

		<tr>
			<td align="right">项目负责人手机：</td>
			<td>
				<x:out select="$xmlData/data/proposal/fzr_mobile"/>
			</td>
			<td align="right">负责人电话：</td>
			<td>
				<x:out select="$xmlData/data/proposal/fzr_tel"/>
			</td>
		</tr>

		<tr>
			<td align="right"><span class="color_red">*</span>内设学院或机构：</td>
			<td colspan="3">
				<x:out select="$xmlData/data/proposal/built_institute"/>
			</td>
		</tr>

        <c:set var="enterpriseScaleValue"><x:out select="$xmlData/data/proposal/enterprise_scale_value" /></c:set>
        <c:set var="technologyEnterpriseValue"><x:out select="$xmlData/data/proposal/technology_enterprise_value" /></c:set>
		<c:set var="nature_value"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" /></c:set>
		<c:if test="${fn:substring(nature_value,0,1) eq 'A'}">
			<tr>
				<td align="right">企业类型
					（是否中小企业参考工信部联企业〔2011〕300号关于印发中小企业划型标准规定的通知）：</td>
				<td colspan="3" align="center">
					<c:if test="${fn:contains(enterpriseScaleValue,'中小企业')}">
						<span class="tu_biao1"></span>中小企业
						<c:if test="${fn:contains(technologyEnterpriseValue,'科技型中小企业')}">
							（<span class="tu_biao1"></span>科技型中小企业）
						</c:if>
						<c:if test="${!fn:contains(technologyEnterpriseValue,'科技型中小企业')}">
							（<span class="tu_biao2"></span>科技型中小企业）
						</c:if>
						<c:if test="${fn:contains(enterpriseScaleValue,'民营企业')}">
							<span class="tu_biao1"></span>民营企业
						</c:if>
						<c:if test="${!fn:contains(enterpriseScaleValue,'民营企业')}">
							<span class="tu_biao2"></span>民营企业
						</c:if>
					</c:if>

					<c:if test="${!fn:contains(enterpriseScaleValue,'中小企业')}">
						<span class="tu_biao2"></span>中小企业
						<c:if test="${fn:contains(technologyEnterpriseValue,'科技型中小企业')}">
							（<span class="tu_biao1"></span>科技型中小企业）
						</c:if>
						<c:if test="${!fn:contains(technologyEnterpriseValue,'科技型中小企业')}">
							（<span class="tu_biao2"></span>科技型中小企业）
						</c:if>
						<c:if test="${fn:contains(enterpriseScaleValue,'民营企业')}">
							<span class="tu_biao1"></span>民营企业
						</c:if>
						<c:if test="${!fn:contains(enterpriseScaleValue,'民营企业')}">
							<span class="tu_biao2"></span>民营企业
						</c:if>
					</c:if>
				</td>
			</tr>
            <tr>
                <td align="right">是否规模以上工业企业：</td>
                <td align="center" colspan="3">
                    <c:set var="industrial_enterprise_value"><x:out select="$xmlData/data/proposal/industrial_enterprise_value" /></c:set>
                    <c:if test="${industrial_enterprise_value=='0' }"><span class="tu_biao1"></span>是</c:if><c:if test="${industrial_enterprise_value!='0'}"><span class="tu_biao2"></span>是</c:if>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
					&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
                    <c:if test="${industrial_enterprise_value=='1' }"><span class="tu_biao1"></span>否</c:if><c:if test="${industrial_enterprise_value!='1'}"><span class="tu_biao2"></span>否</c:if>
                </td>
            </tr>
		</c:if>
	 <tr>
	    <td align="right">合作形式：</td>
        <td >
            <c:set var="foreigncooperation_nature_value"><x:out select="$xmlData/data/proposal/foreigncooperation_nature_value" /></c:set>
			<cpt:checkbox key="foreigncooperation_nature" name="foreigncooperation_nature" width="70px" repeatColumn="2" value="${foreigncooperation_nature_value }" showFlag="view"></cpt:checkbox>
			
		</td>
    	<%--<td align="right">所属领域：</td>
		 <td >
			 <c:set var="foreigncooperationdomain_nature_value"><x:out select="$xmlData/data/proposal/foreigncooperationdomain_nature_value" /></c:set>
			 <cpt:checkbox key="foreigncooperationdomain_nature" name="foreigncooperationdomain_nature" width="70px" repeatColumn="2" value="${foreigncooperationdomain_nature_value }" showFlag="view"></cpt:checkbox>

		 </td>--%>
		 <td  align="right">所属领域：</td>
		 <td  >
			 <x:out select="$xmlData/data/proposal/applicant_subject_name" />
		 </td>
    </tr>
	
    <tr>
		<td  align="right" >项目开始日期：</td>
		   <td align="center">
			 	<x:out select="$xmlData/data/proposal/start_date" />
		   </td>
		<td  align="right">项目结束日期：</td>
		   <td align="center">
		    	<x:out select="$xmlData/data/proposal/end_date" />
		   </td>
	 </tr>
	
  

	<tr>
		<%--<td align="right">
			项目报审级次：
			<br />
			（省补助资金拨付所属财政局）
		</td>
		<td>
			<x:out select="$xmlData/data/proposal/sub_step_name" />
		</td>--%>


		<td align="right">项目申请金额（万元）：</td>
		<td align="center" colspan="3">
			<x:out select="$xmlData/data/proposal/request_money" />
		</td>
	</tr>

</table>
<div class="t_bar"><span class="color_red">*</span>合作单位信息</div>
<table  id="inland" border="0" cellspacing="0" cellpadding="0" class="table01 t_css">
	<thead >
		<tr>
			<th align="center" width="5%">序号</th>
			<th align="center" width="9%">单位名称</th>
			<th align="center" width="12%">单位地址</th>
			<th align="center" width="9%">合作单位性质</th>
			<th align="center" width="9%">合作形式</th>
			<th align="center" width="9%">合作经费支出（万元）</th>
			<th align="center" width="9%">联系人</th>
			<th align="center" width="9%">电话</th>
			<th align="center" width="9%">国别</th>
			<th align="center" width="10%">是否长三角区域</th>
			<th align="center" width="10%">是否县域单位（不含市辖区）</th>
		</tr>
	</thead>
			<tbody id="inland_tab">
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/inlands/inland" var="inland">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
					
						<td align="center">
							<span   name="inlands/inland[${flag}${index}]@seq_no" ><x:out select="$inland/@seq_no"/></span> 
						</td>
						<td style="word-break: break-all;">
							<x:out select="$inland/org_name" />
						</td>

						<td style="word-break: break-all;">
							<x:out select="$inland/org_address" />
						</td>
						
						<td style="word-break: break-all;">
							<x:out select="$inland/coop_org_type" /> 
						</td>
						
						<td style="word-break: break-all;">
							<x:out select="$inland/coop_formal" />
						</td>
						
						<td align="center" style="word-break: break-all;">
							<x:out select="$inland/coop_fund_expend" />
						</td>
						 
						<td align="left" style="word-break: break-all;">
							<x:out select="$inland/psn_name" /> 
						</td>
						<td align="center" style="word-break: break-all;">
							<x:out select="$inland/psn_phone" />
						</td>
						<td align="center" style="word-break: break-all;">
							<x:out select="$inland/location" />
						</td>
						<td align="center">
							<c:set var="triangle_region_value"><x:out select="$inland/triangle_region_value"/></c:set>
							<c:if test="${triangle_region_value==0 }">是</c:if><c:if test="${triangle_region_value==1 }">否</c:if>
						</td>
						<td align="center">
							<c:set var="county_units_value"><x:out select="$inland/county_units_value"/></c:set>
							<c:if test="${county_units_value==0 }">是</c:if><c:if test="${county_units_value==1 }">否</c:if>
						</td>
					</tr>
						<c:set var="beggerClass"></c:set>
						<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>  
				</tbody>
			</table>
<div class="t_bar">项目简述</div>
<table id="tblMileStones0" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
				<col style="width:34%"/>
				<col style="width:40%"/>
				<col style="width:13%"/>
				<col style="width:13%"/>
				<tr>
					<td colspan="4" style="word-break: break-all;">
						<pre><x:out select="$xmlData/data/project/summary0" /></pre>
					</td> 
				</tr> 
		 
</table> 
			
	
<script type="text/javascript">
	function initTreeValueExt(treeId, treeNode) {
		if ((treeNode && treeNode.isParent)) {
			scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
			return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			str = obj.name + "-" + str;
			obj = obj.parentNode;
		}
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
	}
	
function initControlValue(objId){
	    
	    var name="";
	    var obj=$("#"+objId);
	    if(obj.is("select")){
	        name=obj.attr("name");
	        obj.parent().children("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).find("option:selected").val());
	        $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).find("option:selected").text());
	    }
	   
	    else if(obj.is(":radio")){
	        name=obj.attr("name");
	        if(obj.is(":checked")){//如果被选中
	            //alert($("#"+objId).val());        
	            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	            $("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).next().text());
	        }
	        else{
	            
	            obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val("");
	        }
	    }else if(obj.is(":checkbox")){
	        name=obj.attr("name");
	        if(obj.is(":checked"))//如果被选中
	            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	        else
	            obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val("");
	    }else{
	        name=obj.attr("id");
	        obj.parents("td").find("input[name$='"+name+"_name'][type='hidden']").val(obj.val());
	        obj.parents("td").find("input[name$='"+name+"_code'][type='hidden']").val($("#"+objId+"_hideId").val());
	    }   
	}


	
	$(function(){
		/*initControl11();*/
		$("#tab1").click();
		$("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
		$("#fragment-tab1 select").addClass("select_width");

		$("table.t_css").each(function(){  
		    $(this).find("tr").not(".cbTable tr").filter(":even").addClass("li_1");
		    $(this).find("tr").not(".cbTable tr").filter(":odd").addClass("li_2");
		});
		})

</script>
